using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._ParcelTools._Administration
{
    /// <summary>
    /// <para>Create Parcel Fabric</para>
    /// <para>Creates a parcel fabric and its associated datasets. The parcel fabric is created  in a feature dataset that resides in a file or an enterprise geodatabase.</para>
    /// <para>创建宗地结构及其关联的数据集。宗地结构是在驻留在文件或企业级地理数据库中的要素数据集中创建的。</para>
    /// </summary>    
    [DisplayName("Create Parcel Fabric")]
    public class CreateParcelFabric : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public CreateParcelFabric()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_target_dataset">
        /// <para>Target Feature Dataset</para>
        /// <para>The feature dataset in which the parcel fabric and related schema will be created. The feature dataset can reside in a file or an enterprise geodatabase.</para>
        /// <para>将在其中创建宗地结构和相关方案的要素数据集。要素数据集可以驻留在文件地理数据库或企业级地理数据库中。</para>
        /// </param>
        /// <param name="_name">
        /// <para>Name</para>
        /// <para>The name of the parcel fabric that will be created. Associated datasets will be prefixed with the parcel fabric name.</para>
        /// <para>将创建的宗地结构的名称。关联的数据集将以宗地结构名称为前缀。</para>
        /// </param>
        public CreateParcelFabric(object _target_dataset, object _name)
        {
            this._target_dataset = _target_dataset;
            this._name = _name;
        }
        public override string ToolboxName => "Parcel Tools";

        public override string ToolName => "Create Parcel Fabric";

        public override string CallName => "parcel.CreateParcelFabric";

        public override List<string> AcceptEnvironments => [];

        public override object[] ParameterInfo => [_target_dataset, _name, _out_parcel_fabric];

        /// <summary>
        /// <para>Target Feature Dataset</para>
        /// <para>The feature dataset in which the parcel fabric and related schema will be created. The feature dataset can reside in a file or an enterprise geodatabase.</para>
        /// <para>将在其中创建宗地结构和相关方案的要素数据集。要素数据集可以驻留在文件地理数据库或企业级地理数据库中。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Target Feature Dataset")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _target_dataset { get; set; }


        /// <summary>
        /// <para>Name</para>
        /// <para>The name of the parcel fabric that will be created. Associated datasets will be prefixed with the parcel fabric name.</para>
        /// <para>将创建的宗地结构的名称。关联的数据集将以宗地结构名称为前缀。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Name")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _name { get; set; }


        /// <summary>
        /// <para>Output Parcel Fabric</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Parcel Fabric")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_parcel_fabric { get; set; }


        public CreateParcelFabric SetEnv()
        {
            base.SetEnv();
            return this;
        }

    }

}